#!/bin/bash

ansible db -m shell -a "podman run --name mysql -d -e MYSQL_ROOT_PASSWORD='shixun2022'  docker.io/library/mysql"
ansible db -m shell -a "cd /etc/systemd/system/;
podman generate systemd --name mysql --files"
ansible db -m shell -a "systemctl daemon-reload;systemctl start container-mysql.service;systemctl enable container-mysql.service;loginctl enable-linger;"

